import useLoginStore from "@/stores/login/login";

function usePermissions(permissionID: string) {
  const loginStore = useLoginStore();
  const permissions = loginStore.permissions;
  return !!permissions.find((item) => item.includes(permissionID));
}

export default usePermissions;
